export enum UploadTypeEnum {
  all = 'all',
  image = 'image',
  file = 'file',
}

export enum UploadStatus {
  done = 'done', // 完成
  error = 'error', // 报错
  uploading = 'uploading', // 正在上传
  removed = 'removed', // 已删除
}

export enum UploadPosition {
  local = 'local', //本地上传
  minio = 'minio', // minio上传
}

export enum UploadListType {
  text = 'text',
  picture = 'picture',
  picture_card = 'picture-card',
}

export enum FileSizeUnit {
  B = 'B',
  KB = 'KB',
  MB = 'MB',
  GB = 'GB',
  TB = 'TB',
}

export enum UploadMode {
  defaults = 'defaults', // 默认
  drag = 'drag', // 拖拽
}

export enum OptionMode {
  api = 'api', // 接口方式
  options = 'options', //静态数据
  optionsFunc = 'optionsFunc', // 函数形式
}

export enum SelectMode {
  multiple = 'multiple', // 多选
  tags = 'tags', // 标签
}

export enum ModalType {
  edit = 'edit',
  add = 'add',
  detail = 'detail',
}

export enum ModalName {
  add = '新增',
  edit = '编辑',
  detail = '详情',
}

export enum RequestMethod {
  post = 'post',
  get = 'get',
}

export enum TypeEnumCode {
  node = '前端组件',
  java = '后端组件',
}

// 接口的默认传参数据
export enum PordDefaultData {
  projectCode = 'SYSTEM', // 默认项目编码
  systemBuiltInProject = '系统内建项目', // 系统内建项目
  manufacturedTool = 'TOOL', // 制品工具
  artifactRepository = 'ARTIFACT', // 制品仓库
  openScope = 'PROJECT', //开放范围，PROJECT项目级-私有/PUBLIC团队级-公共，接口填写默认值PROJECT
  internalArtifact = 'INTERNAL_ARTIFACT', //制品工具默认公开仓库值为INTERNAL_ARTIFACT，该值得数据不提供修改删除
  toolArtifact = 'TOOL_ARTIFACT', //制品工具其他新增值默认填写为TOOL_ARTIFACT，该值得数据提供修改删除
}

// 标签的颜色
export enum TagColors {
  RED = 'rgb(230, 55, 28)',
  ORANGE = 'rgb(238,192,0)',
  GREEN = 'rgb(0,171,8)',
  BLUE = 'rgb(37,144,255)',
  PURPLE = 'rgb(146,90,211)',
  MAGENTA = 'rgb(235,47,150)',
  GRAY = 'rgb(153,153,153)',
}

// 标签的背景颜色
export enum TagBgColors {
  RED = 'rgb(230, 55, 28,.1)',
  ORANGE = 'rgb(238,192,0,.1)',
  GREEN = 'rgb(0,171,8,.1)',
  BLUE = 'rgb(37,144,255,.1)',
  PURPLE = 'rgb(146,90,211,.1)',
  MAGENTA = 'rgb(235,47,150,.1)',
  GRAY = 'rgb(153,153,153,.1)',
}

// websocket的状态
export enum WebSocketStatus {
  CONNECTING = 0, // WebSocket 正在尝试连接
  OPEN = 1, // WebSocket 已连接
  CLOSING = 2, // WebSocket 正在关闭
  CLOSED = 3, // WebSocket 已关闭
}

// 仓库的枚举
export enum RepositoryEnum {
  NPM = 'NPM',
  MAVEN = 'MAVEN',
  DOCKER = 'DOCKER',
  GENERIC = 'GENERIC',
}

// 菜单类型 menuType  1目录 2菜单
export enum MenuType {
  fold = 1,
  menu = 2,
}

// 消息通知类型
export enum MessageTypeEnum {
  text = 'TEXT',
  link = 'LINK',
}

// 内置的变量，不可删除或修改
export enum SystemBuiltInVariables {
  DEFAULT = 1, // 默认变量
}

// 字典表的枚举值
export enum DictEnum {
  languageOptinos = 'PIPELINE_TEMPLATE_PROGRAM_LANG', // 编程语言选项
  componentData = 'PIPELINE_TEMPLATE_COMPONENT_TYPE', // 组件数据
  deploymentProgress = 'DEPLOYMENT_UNIT_PROCESS_STATUS', // 部署进度
}
